package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据空间管理对象 hd_space_manage
 * 
 * @author ljw
 * @date 2023-11-10
 */
public class HdSpaceManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long id;

    /** 空间名称 */
    @Excel(name = "空间名称")
    private String spaceName;

    /** 空间路径 */
    @Excel(name = "空间路径")
    private String spacePath;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String spaceDeviceName;

    /** 空间类型(0-独立磁盘，1-虚拟磁盘) */
    @Excel(name = "空间类型(0-独立磁盘，1-虚拟磁盘)")
    private String spaceType;

    /** 空间属性(0-永久空间，1-临时空间，2-用户空间) */
    @Excel(name = "空间属性(0-永久空间，1-临时空间，2-用户空间)")
    private String spaceAttribute;

    /** 创建时总容量(bytes) */
    @Excel(name = "创建时总容量(bytes)")
    private Long spaceTotalVolume;

    /** 创建时可用容量(bytes) */
    @Excel(name = "创建时可用容量(bytes)")
    private Long spaceFreeVolume;

    /** 所属用户id */
    @Excel(name = "所属用户id")
    private Long belongUserId;

    /** 所属用户名称 */
    @Excel(name = "所属用户名称")
    private String belongUserName;

    /** 删除标志（0存在， 2删除） */
    @Excel(name = "删除标志", readConverterExp = "0=存在，,2=删除")
    private String spaceDeleteFlag;

    /** 停用标志（0停用，1启用） */
    @Excel(name = "停用标志", readConverterExp = "0=停用，1启用")
    private String spaceStopFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSpaceName(String spaceName) 
    {
        this.spaceName = spaceName;
    }

    public String getSpaceName() 
    {
        return spaceName;
    }
    public void setSpacePath(String spacePath) 
    {
        this.spacePath = spacePath;
    }

    public String getSpacePath() 
    {
        return spacePath;
    }
    public void setSpaceDeviceName(String spaceDeviceName) 
    {
        this.spaceDeviceName = spaceDeviceName;
    }

    public String getSpaceDeviceName() 
    {
        return spaceDeviceName;
    }
    public void setSpaceType(String spaceType) 
    {
        this.spaceType = spaceType;
    }

    public String getSpaceType() 
    {
        return spaceType;
    }
    public void setSpaceAttribute(String spaceAttribute) 
    {
        this.spaceAttribute = spaceAttribute;
    }

    public String getSpaceAttribute() 
    {
        return spaceAttribute;
    }
    public void setSpaceTotalVolume(Long spaceTotalVolume) 
    {
        this.spaceTotalVolume = spaceTotalVolume;
    }

    public Long getSpaceTotalVolume() 
    {
        return spaceTotalVolume;
    }
    public void setSpaceFreeVolume(Long spaceFreeVolume) 
    {
        this.spaceFreeVolume = spaceFreeVolume;
    }

    public Long getSpaceFreeVolume() 
    {
        return spaceFreeVolume;
    }
    public void setBelongUserId(Long belongUserId) 
    {
        this.belongUserId = belongUserId;
    }

    public Long getBelongUserId() 
    {
        return belongUserId;
    }
    public void setBelongUserName(String belongUserName) 
    {
        this.belongUserName = belongUserName;
    }

    public String getBelongUserName() 
    {
        return belongUserName;
    }
    public void setSpaceDeleteFlag(String spaceDeleteFlag) 
    {
        this.spaceDeleteFlag = spaceDeleteFlag;
    }

    public String getSpaceDeleteFlag() 
    {
        return spaceDeleteFlag;
    }
    public void setSpaceStopFlag(String spaceStopFlag) 
    {
        this.spaceStopFlag = spaceStopFlag;
    }

    public String getSpaceStopFlag() 
    {
        return spaceStopFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spaceName", getSpaceName())
            .append("spacePath", getSpacePath())
            .append("spaceDeviceName", getSpaceDeviceName())
            .append("spaceType", getSpaceType())
            .append("spaceAttribute", getSpaceAttribute())
            .append("spaceTotalVolume", getSpaceTotalVolume())
            .append("spaceFreeVolume", getSpaceFreeVolume())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("belongUserId", getBelongUserId())
            .append("belongUserName", getBelongUserName())
            .append("spaceDeleteFlag", getSpaceDeleteFlag())
            .append("spaceStopFlag", getSpaceStopFlag())
            .toString();
    }
}
